﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ExcelJsonParser
{
    public partial class JsonInputDialog : Form
    {
        public string JsonInput
        { 
            get
            {
                string returnInputText = jsonInput.Text;
                if (ignoreN.Checked)
                {
                    returnInputText = returnInputText.Replace("\n", "");    
                }
                if (ignoreR.Checked)
                {
                    returnInputText = returnInputText.Replace("\r", "");
                }
                return returnInputText;
            } 
        }

        public JsonInputDialog()
        {
            InitializeComponent();
        }

        private void submit_Click(object sender, EventArgs e)
        {
            this.DialogResult = System.Windows.Forms.DialogResult.OK;
            this.Close();
        }

    }
}
